package com.adinnet.admin.system.mapper;

import com.adinnet.admin.system.model.SysUser;
import com.adinnet.admin.system.model.vo.SysUserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author sunjianbo
 * @since 2019-05-17
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser selectByUsername(String username);

    List<SysUserVo> getUserList(Page<SysUserVo> objectPage, @Param("searchKey") String searchKey, @Param("searchValue")String searchValue, @Param("roleId")Integer roleId);
}
